import request from '@/utils/request'

// 获取指标数据
export function getMetrics() {
  return request({
    url: '/monitor/server/metrics',
    method: 'get'
  })
}

// 获取Prometheus状态
export function getPrometheusStatus() {
  return request({
    url: '/monitor/server/prometheus',
    method: 'get'
  })
}

// 获取Grafana状态
export function getGrafanaStatus() {
  return request({
    url: '/monitor/server/grafana',
    method: 'get'
  })
}

// 发送测试告警
export function sendTestAlert() {
  return request({
    url: '/monitor/server/alert/test',
    method: 'post'
  })
} 